package com.tongyu.bezier.fragment;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.tongyu.bezier.R;
import com.tongyu.bezier.view.ShopBezier;


public class ShopFragment extends Fragment {
    private ShopBezier bezierShop;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        View view = inflater.inflate(R.layout.fragment_shop, null);
        Button btn_shop = view.findViewById(R.id.btn_shop);
        bezierShop = (ShopBezier) view.findViewById(R.id.bezier_shop);
        btn_shop.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bezierShop.addImageView();
            }
        });
        return view;
    }
}